package edu.gdin.ecommerce.service.exception;

public class ServiceException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4712070397502248638L;
	
	/** 错误代码 */
	private String code;

	public String getCode() {
		return code;
	}

	
	public ServiceException(String code) {
		super();
		this.code = code;
	}

	public ServiceException(String code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
	}

	public ServiceException(String code, String message) {
		super(message);
		this.code = code;
	}

	public ServiceException(String code,Throwable cause) {
		super(cause);
		this.code = code;
	}
	
	
	
	
}
